package com.gitee.genshin.analyse.data.vo;

import java.util.Objects;

/**
 * @author hongda.li.dlmu@qq.com 2022/7/12 16:22
 */
public class GenshinData {
    private long uid;
    private int gacha_type;
    private long item_id;
    private int count;
    private String time;
    private String name;
    private String lang;
    private String item_type;
    private int rank_type;
    private long id;

    public long getUid() {
        return uid;
    }

    public void setUid(long uid) {
        this.uid = uid;
    }

    public int getGacha_type() {
        return gacha_type;
    }

    public void setGacha_type(int gacha_type) {
        this.gacha_type = gacha_type;
    }

    public long getItem_id() {
        return item_id;
    }

    public void setItem_id(long item_id) {
        this.item_id = item_id;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getItem_type() {
        return item_type;
    }

    public void setItem_type(String item_type) {
        this.item_type = item_type;
    }

    public int getRank_type() {
        return rank_type;
    }

    public void setRank_type(int rank_type) {
        this.rank_type = rank_type;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        GenshinData that = (GenshinData) o;
        return uid == that.uid && gacha_type == that.gacha_type && item_id == that.item_id && count == that.count && rank_type == that.rank_type && id == that.id && Objects.equals(time, that.time) && Objects.equals(name, that.name) && Objects.equals(lang, that.lang) && Objects.equals(item_type, that.item_type);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uid, gacha_type, item_id, count, time, name, lang, item_type, rank_type, id);
    }

    @Override
    public String toString() {
        return "GenshinData{" +
                "uid=" + uid +
                ", gacha_type=" + gacha_type +
                ", item_id=" + item_id +
                ", count=" + count +
                ", time='" + time + '\'' +
                ", name='" + name + '\'' +
                ", lang='" + lang + '\'' +
                ", item_type='" + item_type + '\'' +
                ", rank_type=" + rank_type +
                ", id=" + id +
                '}';
    }
}
